home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4396 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.3 KB

  1. Path: news.mcs.net!not-for-mail
  2. From: marcr@MCS.COM (Marc Rossi)
  3. Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.win32
  4. Subject: Re: MFC and console apps
  5. Followup-To: comp.lang.c++,comp.os.ms-windows.programmer.win32
  6. Date: 29 Jan 1996 22:25:29 -0600
  7. Organization: MCSNet Services
  8. Message-ID: <4ek6jp$k3g@Venus.mcs.com>
  9. References: <4ejfsi$h5s@gate.bronson.com>
  10. NNTP-Posting-Host: venus.mcs.com
  11. X-Newsreader: TIN [version 1.2 PL2 (KSD)]
  12.  
  13. Scott Wade (SWade@bronson.com) wrote:
  14. : New to MFC and wondering whether it's possible to use MFC classes in a
  15. : CONSOLE app?  
  16.  
  17. I had the same question about a week ago, wanting to use the DAO classes
  18. in MFC for a console app.  According to MS (at least according to the
  19. MS support person I spoke with) it is possible to write a console app 
  20. using MFC but it is not a recommended procedure.  Some of the MFC classes
  21. make references to classes that would only have been instantiated if
  22. you were running a Windowed app, such as a CWinApp object.  MS suggested
  23. creating a dummy CWinApp instance if I really needed to use MFC.  I passed
  24. on the suggestion (sounds like a kludge to me).  FYI, I was unable to use
  25. DAO without having a MFC dependency (the DAO SDK on the VC CD has MFC
  26. dependencies).
  27.  
  28. Hope this helps.
  29. Marc
  30. -- 
  31. Marc C. Rossi
  32. marcr@mcs.com
  33. http://www.mcs.com/~marcr
  34.